g_Music = new class musicManager {
    constructor() {

    }
    playBGM(resName) {
        let res = g_Res.getRes("audio", resName);
        if (res) {
            cc.audioEngine.playMusic(res);
        }
    }
    playEffict(resName) {
        let res = g_Res.getRes("audio", resName);
        if (res) {
            cc.audioEngine.playEffect(res);
        }
    }
}